//
//  LiveNewSignBaseViewModel.m
//  AFNetworking
//
//  Created by tianlong on 2020/9/27.
//

#import "LiveNewSignBaseViewModel.h"
//#import "WXGetUUID.h"

@implementation LiveNewSignBaseViewModel

- (instancetype)initWithInView:(UIView *)inView
{
    self = [super init];
    if (self) {
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(appWillResignActive:) name:UIApplicationWillResignActiveNotification object:nil];
        self.inView = inView;
    }
    return self;
}

#pragma mark - 通知回调
- (void)appWillResignActive:(NSNotification *)note {}

#pragma mark - public function
/** 展示签到面板 */
- (void)showSignViewWithInterId:(NSString *)interId{}
/** 签到成功 */
- (void)showSignSuccess:(LiveNewSignSuccessEntity *)successEntity myClassStatus:(BOOL)myClassStatus{}
/** 错过签到 */
- (void)showSignMiss{}
/** 未签到 */
- (void)showSignNot{}

- (void)removeSignView {
    [self.signView dismiss];
    self.signView = nil;
}
- (NSString *)getNonce {
    return nil;
//    return [WXGetUUID createCUID];
}

- (void)setStuName:(NSString *)stuName {
    NSString *name = @"哈哈";
    int maxLen = 6;
    if (name.length > maxLen) {
        name = [name substringToIndex:maxLen];//限制6个字符
    }
    _stuName = name;
}

@end
